<template>
  <div>
    <Modal v-model="isShow" draggable scrollable title="Modal 1" :ref="componentInfo.name" footer-hide class-name="base-modal">
      <component-loader :componentInfo="componentInfo"/>
    </Modal>
  </div>
</template>

<script>
import ComponentLoader from "./ComponentLoader.vue";

// 基础对话框
export default {
    name: "base-modal",
    data() {
        return {
            isShow: true
        }
    },
    props: {
        componentInfo: Object
    },
    components: {
        ComponentLoader
    }
}
</script>

<style>
.base-modal .ivu-modal-body {
    height: 400px;
    overflow-y: auto;
}
</style>